//
//  HNHomeShareSubView.m
//  HappyNews
//
//  Created by baiping on 16/1/15.
//  Copyright © 2016年 BPWBANP. All rights reserved.
//

#import "HNHomeShareSubView.h"

@implementation HNHomeShareSubView

- (instancetype)initWithFrame:(CGRect)frame{
    
    self = [super initWithFrame:frame];
    
    if (self) {
        
        _shareButton = [UIButton buttonWithType:(UIButtonTypeCustom)];
        
        _shareButton.frame = CGRectMake(0, 0, 50, 50);
        
        _shareButton.layer.cornerRadius = 25;
        
        _shareButton.layer.masksToBounds = YES;
        
        [self addSubview:_shareButton];
        
        _name = [[UILabel alloc]initWithFrame:CGRectMake(_shareButton.left, _shareButton.bottom, 50, 20)];
        
        _name.font = [UIFont systemFontOfSize:12];
        
        _name.textAlignment = NSTextAlignmentCenter;
        
        [self addSubview:_name];
        
    }
    return self;
    
}
@end
